package com.pll.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pll.controller.admin.order.vo.ConditionPaginationVO;
import com.pll.controller.admin.order.vo.OrderResultVO;
import com.pll.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @className: OrderMapper
 * @author: XR_Z
 * @date: 2025/6/9 18:59
 * @Version: 1.0
 * @description: 订单相关 Mapper
 */

@Mapper
public interface OrderMapper {

    List<Order> allOrders();

    IPage<OrderResultVO> selectPendingOrders(
            @Param("page") Page<OrderResultVO> page,
            @Param("condition") ConditionPaginationVO conditionPaginationVO
    );

    int modifiedToReceived(int id);

    int volumeLawsOrdersTaken(@Param("ids") ArrayList<Integer> ids);

    int refuse(int id);

    int bulkRejection(@Param("ids") ArrayList<Integer> ids);


}
